<?php
 sprintf("按时打撒");
  echo" ";
 echo sprintf("按时打撒");
  echo" ";
 
 $sum=0.3;
 echo gettype($sum);
  echo" ";
 echo gettype("sdf");
  echo" ";
 echo gettype(1.2);
  echo" ";
echo settype($sum,'string');
  gettype($sum);
  
  echo" ";
  print($sum);
  echo" ";
  echo isset($sum);
  
  unset($sum);
  echo isset($sum);
  echo" ";
  
  
  $sum=10.0;
  intval($sum);
  #转换返回的值,本身不转化
  //is_integer($sum)
  
  settype($sum, 'integer');
  #settype转换本身
  
  
//   if(is_integer($sum)){
//       echo"ok";
//   }else{
//       echo"no";
//   }
  $sum=floatval($sum);
  $sum=doubleval($sum);
  #php不区分float和double
  $sum=strval($sum);
  echo(gettype($sum));
  
  
  echo "<br/>1";
  
 // print_r($GLOBALS);
 
  if(is_array($GLOBALS)){
      //print_r($GLOBALS);
  }
  
  define("常量", "DFD");
  echo 常量;
  #define("常量", "FD");
  #Warning: Constant 常量 already defined
  
  //phpinfo();
  
  echo  $_SERVER['PHP_SELF']; 
  
  
  $a=3;
  $b=&$a;
  $b=5;
  $c=$b;
  $c=7;
  echo " $a  $b $c \n";
  
  
  $a1=3;
  $b1=$a1;
  
  $c1=&$a1;
  $c1=7;
  echo " $a1  $b1 $c1";
  